<div class="am-progress am-progress-xs" style="margin-bottom: 0">
	<div class="am-progress-bar" style="width: 100%"></div>
</div>
<header class="am-topbar" id="my-sticky" style="z-index: 1000">
	<div class="am-container">
		<h1 class="am-topbar-brand">
			<a href="/"><?php echo APP_NAME ?></a>
		</h1>

		<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-secondary am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}">
			<span class="am-sr-only">导航切换</span>
			<span class="am-icon-bars"></span>
		</button>

		<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
			<ul class="am-nav am-nav-pills am-topbar-nav">
				<li><a href="/">首页</a></li>
				{volist name="menu" id="vo"}
				{php}if (empty($vo['son'])) {{/php}
				{php}if ($vo['name'] == "发布") {{/php}
				<li class="am-show-md-up"><a href="{$vo.url}">{$vo.name}</a></li>
				{php}} else {{/php}
				<li><a href="{$vo.url}">{$vo.name}</a></li>
				{php}}{/php}
				{php}} elseif (!empty($vo['son'])) {{/php}
				<li class="am-dropdown" data-am-dropdown>
					<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:void(0)"> {$vo.name} <span class="am-icon-caret-down"></span></a>
					<ul class="am-dropdown-content">
						{php}foreach ($vo['son'] as $voo) {{/php}
						<li><a href="{$voo.url}">{$voo.name}</a></li>
						{php}}{/php}
					</ul>
				</li>
				{php}}{/php}
				{/volist}
			</ul>
		</div>
	</div>
</header>
<!--以上是导航条-->

<div id="doc-oc" class="am-offcanvas">
	<div class="am-offcanvas-bar">
		<div class="am-offcanvas-content">
			<ul>
				<li title="帐号"><i class="am-icon-fw am-icon-user"></i> {$u.username}</li>
				<li title="上传量"><i class="am-icon-fw am-icon-arrow-up"></i> {$u.uploaded|getSize}</li>
				<li title="下载量"><i class="am-icon-fw am-icon-arrow-down"></i> {$u.downloaded|getSize}</li>
				<li title="积分"><i class="am-icon-fw am-icon-cny"></i> {$u.price}</li>
				<li title="H&R"><i class="am-icon-fw am-icon-wheelchair-alt"></i> {$u.hr}</li>
				<li title="2FA"><i class="am-icon-fw am-icon-expeditedssl"></i> {$u.2fa ? "ON" : "OFF"}</li>
				<li title="永久邀请"><i class="am-icon-fw am-icon-share"></i> {$u.longinv}</li>
				<li title="临时邀请"><i class="am-icon-fw am-icon-share-alt"></i> {$u.shortinv}</li>
				<li title="{$u.seedtime|mkPrettyTime=###,1}"><i class="am-icon-fw am-icon-hourglass-start" title="总做种时间"></i> {$u.seedtime|mkPrettyTime}</li>
				<li title="{$u.leechtime|mkPrettyTime=###,1}"><i class="am-icon-fw am-icon-hourglass-end" title="总下载时间"></i> {$u.leechtime|mkPrettyTime}</li>
				<li title="做种数"><i class="am-icon-fw am-icon-angle-double-up"></i> {$u.seed}</li>
				<li title="下载数"><i class="am-icon-fw am-icon-angle-double-down"></i> {$u.leech}</li>
				<li title="完成数"><i class="am-icon-fw am-icon-dot-circle-o"></i> {$u.complete}</li>
			</ul>
			<div class="am-btn-toolbar">
				<div class="am-btn-group am-btn-group-justify">
					<a type="button" class="am-btn am-btn-default am-center" href="/users"><i class="am-icon-fw am-icon-cog" title="控制面板"></i>控制面板</a>
					<a type="button" class="am-btn am-btn-default am-center" href="/index/login/doLogout"><i class="am-icon-fw am-icon-sign-out" title="账号登出"></i>账号登出</a>
				</div>
			</div>
			{if condition="$access eq 1"}
			<div class="am-btn-toolbar">
				<div class="am-btn-group am-btn-group-justify">
					<a type="button" class="am-btn am-btn-primary" href="/backend">进入管理后台</a>
				</div>
			</div>
			{/if}
		</div>
	</div>
</div>
<!--以上是个人信息-->